import { defineStore } from 'pinia'
import { requestResetPassword } from './login-by-id.api'

export default defineStore('loginByUserId', {
    state: () => {
        return {
            
        }
    },
    getters: {
        
    },
    actions: {
        resetPassword(data: Object) {
            return new Promise((resolve, reject) => {
                requestResetPassword(data).then(response => {
                    const res: any = response.data
                    if (res.code === 200) {
                        resolve(res.data)
                    }
                })
            })
        }
    }
})
